<script setup lang="ts">
import BaseWindow from "../../base-window/index.vue";
import {
  ArrowBackCircleOutline,
  ArrowForwardCircleOutline,
} from "@vicons/ionicons5";
import { ref } from "vue";
const tables = ref([
  {
    label: "大棚名称",
    value: "xxx大棚",
  },
  {
    label: "大棚面积：",
    value: "xxx㎡",
  },
  {
    label: "种植作物：",
    value: "番茄",
  },
  {
    label: "种植日期：",
    value: "2022-06-06",
  },
  {
    label: "生长阶段：",
    value: "幼苗期",
  },
]);
</script>

<template>
  <BaseWindow title="种植模型">
    <div>
      <div class="top">
        <div class="label">
          <div>
            <img src="../../../assets/images/dot.png" />
            <span>种植作物</span>
          </div>
          <div class="value">番茄</div>
        </div>
        <div class="label">
          <div>
            <img src="../../../assets/images/dot.png" />
            <span>品种</span>
          </div>
          <div class="value">圣女果，小番茄</div>
        </div>
      </div>
      <div class="center">
        <img src="../../../assets/images/plant.png" />
      </div>
      <div class="bottom">
        <div class="bottom-left button">
          <n-icon size="40">
            <ArrowBackCircleOutline />
          </n-icon>
        </div>
        <div class="bottom-center">生长阶段</div>
        <div class="bottom-right button">
          <n-icon size="40">
            <ArrowForwardCircleOutline />
          </n-icon>
        </div>
      </div>
    </div>
  </BaseWindow>
</template>

<style lang="scss" scoped>
.top {
  display: flex;
  justify-content: space-between;
  span {
    margin-left: 0.5em;
  }
}
.value {
  border-bottom: 2px solid #0d5efc;
  color: #75a3ff;
  font-size: 20px;
  font-weight: bold;
}
.center {
  width: 100%;
  display: flex;
  margin: 30px 0;
  justify-content: center;
  img {
    width: 280px;
    object-fit: contain;
  }
}
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}
.bottom-center {
  color: #89b0ff;
  font-size: 22px;
  font-weight: bold;
}
.button {
  cursor: pointer;
  opactiy: 0.8;
}
.button:hover {
  opactiy: 0.6;
}
.button:active {
  opactiy: 1;
}
</style>
